export const dateFormat = function (value, spe = '-') {
  // console.log(typeof (value));
  value = new Date(value); //将value字符串转换位日期格式  
  let year = value.getFullYear();
  let month = value.getMonth() + 1;
  let day = value.getDate();
  return `${year}${spe}${month}${spe}${day}`;
}